<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thmyleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录错误页面</title>
</head>
<body>
    <div id="login-error">
        <h3 th:text="${login_message_error}"></h3>
        <span id="tip" style="color: red"></span>
    </div>
</body>
<script type="text/javascript" th:inline="javascript">
    var delay = 3; // 设置延迟
	function forwardToLoginPage() {
		if(delay > 0) {
			document.getElementById("tip").innerHTML = delay + "s之后为您跳转到登录页面重新登录";
		} else {
			window.location.href = "http://localhost:9090/index/login";
		}
		delay--;
	}
	setInterval(forwardToLoginPage,1000);
</script>
</html>